<template>
  <div class="envir">
    <div class="top">
      <div class="env temperature">
        <div class="e-title">干燥室温度</div>
        <div class="value">{{ data.temperature1 }} <span class="unit">℃</span></div>
      </div>
      <div class="env temperature">
        <div class="e-title">湿度卡室温度</div>
        <div class="value">{{ data.temperature1 }}</div>
      </div>
      <div class="env temperature">
        <div class="e-title">封合温度</div>
        <div class="value">{{ data.temperature2 }} <span class="unit">℃</span></div>
      </div>
      <div class="env humidity">
        <div class="e-title">干燥室湿度</div>
        <div class="value">{{ data.humidity1 }} <span class="unit">%</span></div>
      </div>
      <div class="env humidity">
        <div class="e-title">湿度卡湿度</div>
        <div class="value">{{ data.humidity1 }}<span class="unit">%</span></div>
      </div>
      <div class="env humidity">
        <div class="e-title">封合真空度</div>
        <div class="value">{{ data.humidity2 }} <span class="unit">KPa</span></div>
      </div>
    </div>
  </div>
</template>
<script setup>
defineProps({
  data: {
    type: Object,
    default: () => ({
      temperature1: 0,
      temperature2: 0,
      humidity1: 0,
      humidity2: 0,
      n2: 0,
      pressure: 0,
    }),
  },
});
</script>
<style scoped lang="scss">
.envir {
  width: 100%;
  height: 100%;
  padding: 10px;
  .top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    .env {
      width: 110px;
      padding-left: 45px;
      font-size: 14px;
      background-size: 100% 100%;
      margin-bottom: 10px;
      margin-right: 20px;
      > div {
        height: 20px;
        white-space: nowrap;
        line-height: 20px;
      }
      .e-title {
        color: #fff;
      }
      .value {
        height: 24px;
        line-height: 24px;
        font-size: 18px;
        color: #4eee5e;
        .unit {
          font-size: 14px;
        }
      }
    }
  }

  .temperature {
    background-image: url("@/assets/images/box/temperature.png");
  }
  .humidity {
    background-image: url("@/assets/images/box/humidity.png");
  }
  .presure {
    background-image: url("@/assets/images/box/dust.png");
  }
}
</style>
